package com.sunjob.loginserver.service;

import com.sunjob.common.domain.loginServer.SysMenu;
import com.sunjob.common.domain.loginServer.SysRole;
import com.sunjob.loginserver.mapper.SysMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.*;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-07-29 8:20
 */
@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    SysMenuMapper sysMenuMapper;
    @Override
    public List<String> queryMenuByRole(String role) {
        return sysMenuMapper.queryMenuByRole(role);
    }

    @Override
    public List<SysMenu> queryAllMenu() {
        return sysMenuMapper.queryAllMenu();
    }
}
